﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200105F RID: 4191
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournRenameArchiveScRsp : IMessage<RogueTournRenameArchiveScRsp>, IMessage, IEquatable<RogueTournRenameArchiveScRsp>, IDeepCloneable<RogueTournRenameArchiveScRsp>, IBufferMessage
	{
		// Token: 0x170034E2 RID: 13538
		// (get) Token: 0x0600BB35 RID: 47925 RVA: 0x001F8825 File Offset: 0x001F6A25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournRenameArchiveScRsp> Parser
		{
			get
			{
				return RogueTournRenameArchiveScRsp._parser;
			}
		}

		// Token: 0x170034E3 RID: 13539
		// (get) Token: 0x0600BB36 RID: 47926 RVA: 0x001F882C File Offset: 0x001F6A2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournRenameArchiveScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170034E4 RID: 13540
		// (get) Token: 0x0600BB37 RID: 47927 RVA: 0x001F883E File Offset: 0x001F6A3E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournRenameArchiveScRsp.Descriptor;
			}
		}

		// Token: 0x0600BB38 RID: 47928 RVA: 0x001F8845 File Offset: 0x001F6A45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRenameArchiveScRsp()
		{
		}

		// Token: 0x0600BB39 RID: 47929 RVA: 0x001F8858 File Offset: 0x001F6A58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRenameArchiveScRsp(RogueTournRenameArchiveScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.maxTimes_ = other.maxTimes_;
			this.name_ = other.name_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BB3A RID: 47930 RVA: 0x001F8895 File Offset: 0x001F6A95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRenameArchiveScRsp Clone()
		{
			return new RogueTournRenameArchiveScRsp(this);
		}

		// Token: 0x170034E5 RID: 13541
		// (get) Token: 0x0600BB3B RID: 47931 RVA: 0x001F889D File Offset: 0x001F6A9D
		// (set) Token: 0x0600BB3C RID: 47932 RVA: 0x001F88A5 File Offset: 0x001F6AA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170034E6 RID: 13542
		// (get) Token: 0x0600BB3D RID: 47933 RVA: 0x001F88AE File Offset: 0x001F6AAE
		// (set) Token: 0x0600BB3E RID: 47934 RVA: 0x001F88B6 File Offset: 0x001F6AB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxTimes
		{
			get
			{
				return this.maxTimes_;
			}
			set
			{
				this.maxTimes_ = value;
			}
		}

		// Token: 0x170034E7 RID: 13543
		// (get) Token: 0x0600BB3F RID: 47935 RVA: 0x001F88BF File Offset: 0x001F6ABF
		// (set) Token: 0x0600BB40 RID: 47936 RVA: 0x001F88C7 File Offset: 0x001F6AC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Name
		{
			get
			{
				return this.name_;
			}
			set
			{
				this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600BB41 RID: 47937 RVA: 0x001F88DA File Offset: 0x001F6ADA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournRenameArchiveScRsp);
		}

		// Token: 0x0600BB42 RID: 47938 RVA: 0x001F88E8 File Offset: 0x001F6AE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournRenameArchiveScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.MaxTimes == other.MaxTimes && !(this.Name != other.Name) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BB43 RID: 47939 RVA: 0x001F8948 File Offset: 0x001F6B48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.MaxTimes != 0U)
			{
				num ^= this.MaxTimes.GetHashCode();
			}
			if (this.Name.Length != 0)
			{
				num ^= this.Name.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BB44 RID: 47940 RVA: 0x001F89BB File Offset: 0x001F6BBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BB45 RID: 47941 RVA: 0x001F89C3 File Offset: 0x001F6BC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BB46 RID: 47942 RVA: 0x001F89CC File Offset: 0x001F6BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Name.Length != 0)
			{
				output.WriteRawTag(42);
				output.WriteString(this.Name);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this.MaxTimes != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.MaxTimes);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BB47 RID: 47943 RVA: 0x001F8A48 File Offset: 0x001F6C48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.MaxTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxTimes);
			}
			if (this.Name.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BB48 RID: 47944 RVA: 0x001F8ABC File Offset: 0x001F6CBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournRenameArchiveScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.MaxTimes != 0U)
			{
				this.MaxTimes = other.MaxTimes;
			}
			if (other.Name.Length != 0)
			{
				this.Name = other.Name;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BB49 RID: 47945 RVA: 0x001F8B25 File Offset: 0x001F6D25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BB4A RID: 47946 RVA: 0x001F8B30 File Offset: 0x001F6D30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 112U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.MaxTimes = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.Name = input.ReadString();
				}
			}
		}

		// Token: 0x04004B65 RID: 19301
		private static readonly MessageParser<RogueTournRenameArchiveScRsp> _parser = new MessageParser<RogueTournRenameArchiveScRsp>(() => new RogueTournRenameArchiveScRsp());

		// Token: 0x04004B66 RID: 19302
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004B67 RID: 19303
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04004B68 RID: 19304
		private uint retcode_;

		// Token: 0x04004B69 RID: 19305
		public const int MaxTimesFieldNumber = 15;

		// Token: 0x04004B6A RID: 19306
		private uint maxTimes_;

		// Token: 0x04004B6B RID: 19307
		public const int NameFieldNumber = 5;

		// Token: 0x04004B6C RID: 19308
		private string name_ = "";
	}
}
